<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<script type="text/javascript" src="Content/js/mysite.js"></script>
<div class="container">
	<ul class="breadcrumb" style="margin-bottom: 10px;">
		<li><a href="home">Trang chủ</a> <span class="divider">/</span></li>
	<li class="active">Trang tìm kiếm nâng cao</li>
	</ul>
	<div class="menuleft" >
<div  class="my_menu" style="width:200px;">
        	<div class="header">Menu</div>
			<ul style="margin-top:0px;margin-bottom:2px;">
                <c:forEach var="menu" items="${requestScope.lMenu1 }">
					<li><a href="book.do?tpid=${ menu.topicId}&trang=1&slbooktt=${requestScope.soBookTrenTrang}&kieuSort=${requestScope.kieuSapXep}"><c:out value="${menu.topicName }"></c:out></a></li>	
				</c:forEach>	                  
            </ul>
		</div>		
	</div>
	<div class="main_content">
		<div class="mycolor"><h3>Tìm kiếm nâng cao</h3></div>
		<div class="span10">
				<form class="form-horizontal" class="span7" action="TimKiemNangCao.do?slbooktt=${requestScope.soBookTrenTrang }&trang=1&save=false" method="POST" name="formitmkiem" id="formitmkiem" >
						  <div class="control-group">
						    <label class="control-label" for="tensach">Tên Sách</label>
						    <div class="controls">
						      <input class="span8" type="text" name="tensach" id="tensach">
						    </div>
						  </div>
						  <div class="control-group">
						    <label class="control-label" for="content">Nội dung</label>
						    <div class="controls">
						      <input class="span8" type="text" id="content" name="content">
						    </div>
						   </div>
						  <div class="control-group">
						    <label class="control-label" for="theloai">Thể loại</label>
						    <div class="controls">
						   	  <select class="span8" id="theloai" name="topic">
								<option value="-1">Tất cả thể loại</option>	
								<c:forEach var="topic" items="${lmenu1 }">
									<option value="${topic.topicId }"><c:out value="${topic.topicName}"></c:out></option>
								</c:forEach>			   	  
						   	  </select>
						   	  	
						    </div>
						  </div>
						  <div class="control-group">
						    <label class="control-label" for="tacgia">Tác giả</label>
						    <div class="controls">
						      <input class="span8" type="text" id="tacgia" name="tacgia">
						    </div>
						  </div>
						  <div class="control-group">
						    <label class="control-label" for="dichgia">Dịch giả</label>
						    <div class="controls">
						      <input class="span8" type="text" id="dichgia" name="dichgia">
						    </div>
						  </div>
						  <div class="control-group">
						    <label class="control-label" for="nhaxuatban">Nhà xuất bản</label>
						    <div class="controls">
						      <input class="span8" type="text" id="nhaxuatban" name="nhaxuatban">
						    </div>
						  </div>
						  <div class="control-group">
						    <label class="control-label" >Giá từ</label>
						    <div class="controls">
						    <div  style="display:inline; width:60px;"></div>
						   	  <input class="span2" type="text" id="giathap" name="giathap">
						   	  <div  style="display:inline; width:60px;">Đến
						   	 		<input class="span2" type="text" id="giacao" name="giacao">	
						   	 </div>						   	  	
						    </div>
				
					   	  	
						  </div>	
						  <div class="control-group">
						    <label class="control-label" >Ngày Xuất Bản</label>
						    <div class="controls">
						   	  <select class="span2" id="ngayxuatban" name="loaiNxb">
						   	  	<option value="1">Trong</option>
						   	  	<option value="2">Trước</option>
						   	  	<option value="3">Sau</option>		   	  
						   	  </select>	
						   	  <div  style="display:inline; width:60px;">Tháng</div>	
						   	  <select class="span2" id="ngayxuatban" name="thang">
						   	  		<option value="-1" selected="selected">Chọn tháng</option>
									<c:forEach var="i" begin="1" end="12" step="1">
										<option value="${i }"><c:out value="${i }"></c:out></option>										
									</c:forEach>	   	  
						   	  </select>	
						   	 <div  style="display:inline; width:60px;">Năm</div>
						   	  <input class="span2" type="text" id="nam" name="nam">						   	  	
						    </div>
						  </div>
						  <div class="control-group">
						    <label class="control-label" for="theloai">Sắp xếp theo</label>
						    <div class="controls">
						   	  <select class="span8" id="kieuSort" name="kieuSort">
								<option value="1" selected="selected" ><c:out value="Tên sách (từ A->Z)"></c:out></option>
								<option value="2"  ><c:out value="Tên sách (từ Z->A)"></c:out></option>
								<option value="3"  ><c:out value="Giá bán(Tăng dần)"></c:out></option>
								<option value="4"  ><c:out value="Giá bán(Giảm dần)"></c:out></option>
								<option value="5" ><c:out value="Ngày xuất bản(tăng dần)"></c:out></option>
								<option value="6" ><c:out value="Ngày xuất bản(giảm dần)"></c:out></option>		   	  
						   	  </select>
						    </div>
						  </div>
					<input  class="btn btn-primary" style="margin-left:400px;" type="submit" value="Tìm kiếm" />  		
				</form>
			
				
				
		</div>
	 </div>
</div>

